import request from '@/utils/request'

// 查询题目附件列表
export function listQueAttachment(query) {
  return request({
    url: '/exam/queAttachment/list',
    method: 'get',
    params: query
  })
}

// 查询题目附件详细
export function getQueAttachment(attachmentId) {
  return request({
    url: '/exam/queAttachment/' + attachmentId,
    method: 'get'
  })
}

// 新增题目附件
export function addQueAttachment(data) {
  return request({
    url: '/exam/queAttachment',
    method: 'post',
    data: data
  })
}

// 修改题目附件
export function updateQueAttachment(data) {
  return request({
    url: '/exam/queAttachment',
    method: 'put',
    data: data
  })
}

// 删除题目附件
export function delQueAttachment(attachmentId) {
  return request({
    url: '/exam/queAttachment/' + attachmentId,
    method: 'delete'
  })
}

// 导出题目附件
export function exportQueAttachment(query) {
  return request({
    url: '/exam/queAttachment/export',
    method: 'get',
    params: query
  })
}